namespace GameSchool.Migrations
{
    using System.Data.Entity.Migrations;
    
    public partial class doddi555 : DbMigration
    {
        public override void Up()
        {
            DropForeignKey("Levels", new[] { "StudentAssignment_studentID", "StudentAssignment_assignmentID" }, "StudentAssignments");
            DropIndex("Levels", new[] { "StudentAssignment_studentID", "StudentAssignment_assignmentID" });
            DropColumn("Levels", "StudentAssignment_studentID");
            DropColumn("Levels", "StudentAssignment_assignmentID");
        }
        
        public override void Down()
        {
            AddColumn("Levels", "StudentAssignment_assignmentID", c => c.Int());
            AddColumn("Levels", "StudentAssignment_studentID", c => c.Int());
            CreateIndex("Levels", new[] { "StudentAssignment_studentID", "StudentAssignment_assignmentID" });
            AddForeignKey("Levels", new[] { "StudentAssignment_studentID", "StudentAssignment_assignmentID" }, "StudentAssignments", new[] { "studentID", "assignmentID" });
        }
    }
}
